import request from "@/utils/request";
//生成订单
export function saveOrders(scheduleId, patientId) {
  return request({
    url: `/api/order/orderInfo/auth/submitOrder/${scheduleId}/${patientId}`,
    method: "post",
  });
}
//根据订单id查询订单详情
export function getOrder(orderId) {
  return request({
    url: `/api/order/orderInfo/auth/getOrders/${orderId}`,
    method: "get",
  });
}
//条件查询带分页订单信息
export function orderList(page,limit,searchObj) {
    return request({
      url: `/api/order/orderInfo/${page}/${limit}`,
      method: "post",
      params: searchObj
    });
  }
//查询订单状态
export function statusList() {
    return request({
      url: `/api/order/orderInfo/auth/getStatusList`,
      method: "get"
    });
  }
//取消订单
export function cancelOrder(orderId) {
    return request({
      url: `/api/order/orderInfo/auth/cancelOrder/${orderId}`,
      method: "get"
    });
}
